Give\DonationForms\Actions\ConvertDonationFormBlocksToFieldsApi A

Total Complexity 56
Dependencies 31
Dependents 1
Total lines 395
Lines of code 253
Logical lines of code 115
Comment lines 65
Methods 10
Properties 3

Methods 10

Method Rating Maintainability Complexity Lines of code
createNodeFromBlockWithUniqueAttributes()
C
33 23 100
mapGenericBlockAttributesToField()
A
56 12 18
createNodeFromDonorNameBlock()
A
46 9 37
createNodeFromBillingAddressBlock()
S
46 2 42
__invoke()
S
52 3 25
convertInnerBlockToNode()
S
63 3 11
convertTopLevelBlockToSection()
S
68 1 7
createNodeFromAmountBlock()
S
75 1 4
createNodeFromConsentBlock()
S
79 1 3
mapBlockToNodeRelationships()
S
71 1 6